package cn.tao;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * 访问地址
 * http://localhost:8888/config-client/dev
 * http://localhost:8888/config-client/dev/master
 * http://localhost:8888/config-client/prod
 * 可出现对应的git地址下的
 * [config-client-dev.properties,config-client-prod.properties] 文件内容，
 * 由此可知规则，若有"a-b.properties",访问起来是localhost:8888/a/b，由此要注意properties文件命名和访问路径的对应关系
 */
@SpringBootApplication
@EnableConfigServer
// @EnableEurekaClient
public class ConfigcenterServerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ConfigcenterServerApplication.class, args);
    }
}
